cmake_minimum_required(VERSION 3.1)
# 需要注意，使用该驱动时必须设置为3.1
project(camera_driver)
set(CMAKE_CXX_STANDARD 14)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
# message(STATUS ${CMAKE_MODULE_PATH})
# 指定可用的编译种类
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo Release)
# 指定编译种类
set(CMAKE_BUILD_TYPE Debug)

set(CAMERA_DRIVER_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/include")
set(CAMERA_DRIVER_LIB ${CMAKE_SOURCE_DIR}/lib/libHuarayCam.so)

set(OpenVINO_LIBRARIES "/opt/intel/openvino_2022.3/runtime/lib/intel64/libopenvino.so")
set(OpenVINO_DIR "/opt/intel/openvino_2022.3/runtime/cmake")
set(OpenVINO_INLUCDE_DIRS "/opt/intel/openvino_2022.3/runtime/include/" "/opt/intel/openvino_2022.3/runtime/include/ie")

find_package(OpenCV  REQUIRED)
find_package(Boost  REQUIRED COMPONENTS system thread)
find_package(HUARAY REQUIRED)
find_package(yaml-cpp REQUIRED)
find_package(Eigen3  REQUIRED NO_MOUDLE)
find_package(OpenVINO  REQUIRED COMPONENTS  Runtime)
find_library(ARMOR_DETECTOR_LIB armorDetector Basic protocol_driver PATHS "../rm_cv_base_tutorial/lib")#1
include_directories(${Boost_INCLUDE_DIRS} ${HUARAY_INCLUDE_DIR} ${OpenCV_INCLUDE_DIRS} ${YAML_CPP_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} include ../rm_cv_base_tutorial/src/)
include_directories(/opt/intel/openvino_2022.3/runtime/include/ /opt/intel/openvino_2022.3/runtime/include/ie)

# add_subdirectory(/home/hitcrt/a_week01_peixun/rm_cv_base_tutorial ${CMAKE_BINARY_DIR}/rm_cv_base_tutorial)

add_executable(huarayDemo demo.cpp)

target_link_libraries(huarayDemo
        ${OpenCV_LIBS}
        ${HUARAY_LIBRARIES}
        ${Boost_LIBRARIES}
        ${YAML_CPP_LIBRARIES}
        pthread
        ${CAMERA_DRIVER_LIB}
        Eigen3::Eigen
        ${OpenVINO_LIBRARIES}
        ${ARMOR_DETECTOR_LIB}
        "/home/hitcrt/a_week01_peixun(11.30)/rm_cv_base_tutorial/lib/libprotocol_driver.so"
        "/home/hitcrt/a_week01_peixun(11.30)/rm_cv_base_tutorial/lib/libBasic.so"
        "/home/hitcrt/a_week01_peixun(11.30)/camera_driver/lib/libHuarayCam.so"
        )


